package com.hzit.bj1804.dian.entity;

import java.io.Serializable;

/**
 * SPECIFICATION
 * @author 
 */
public class Specification implements Serializable {
    private Integer specid;

    private String specname;

    private Integer commodityid;

    private static final long serialVersionUID = 1L;

    public Integer getSpecid() {
        return specid;
    }

    public void setSpecid(Integer specid) {
        this.specid = specid;
    }

    public String getSpecname() {
        return specname;
    }

    public void setSpecname(String specname) {
        this.specname = specname;
    }

    public Integer getCommodityid() {
        return commodityid;
    }

    public void setCommodityid(Integer commodityid) {
        this.commodityid = commodityid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Specification other = (Specification) that;
        return (this.getSpecid() == null ? other.getSpecid() == null : this.getSpecid().equals(other.getSpecid()))
            && (this.getSpecname() == null ? other.getSpecname() == null : this.getSpecname().equals(other.getSpecname()))
            && (this.getCommodityid() == null ? other.getCommodityid() == null : this.getCommodityid().equals(other.getCommodityid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getSpecid() == null) ? 0 : getSpecid().hashCode());
        result = prime * result + ((getSpecname() == null) ? 0 : getSpecname().hashCode());
        result = prime * result + ((getCommodityid() == null) ? 0 : getCommodityid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", specid=").append(specid);
        sb.append(", specname=").append(specname);
        sb.append(", commodityid=").append(commodityid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}